package timein8;

import java.time.Duration;
import java.time.Instant;
import org.testng.annotations.Test;

/**
 *
 *
 *
 */
public class Duration1 {

    @Test
    private void t1(){
        System.out.println(System.currentTimeMillis());

        System.out.println(Duration.ofDays(1).toSeconds());
    }

    @Test
    private void t2() {
        System.out.println(Duration.ofSeconds(1661011200));
    }

    @Test
    private void t3() {
        Duration duration = Duration.ofSeconds(84600);
        Instant instant = Instant.now().plus(duration);
        long l = instant.toEpochMilli();
        System.out.println(duration);
        System.out.println(instant);
        System.out.println(l);
    }

    @Test
    private void t4() {
        double s = 13384;
        System.out.println(s / 3600);
    }




}
